<?php
//print_r($listbooking);
//print($role);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

<link rel="stylesheet" href="<?php echo base_url()?>css/reset.css" />
<link rel="stylesheet" href="<?php echo base_url()?>css/text.css" />
<link rel="stylesheet" href="<?php echo base_url()?>css/960_24_col.css" />
 <link rel="stylesheet" href="<?php echo base_url()?>css/jquery-ui-1.8.21.custom.css" />
 <link rel="stylesheet" href="<?php echo base_url()?>css/admin/style.css" />
 <script type="text/javascript" src="<?php echo base_url()?>js/jquery-1.7.2.min.js"></script>
 <script type="text/javascript" src="<?php echo base_url()?>js/jquery-ui-1.8.21.custom.min.js"></script>
<script type="text/javascript" src="<?php echo base_url()?>js/scripts.js"></script>
</head>

<body>
	<div class="principal container_24 listclient">
		
		<!--logo-->
		<div class="logo grid_24">
			<div class="grid_1">&nbsp;</div>
			<div class="grid_4 logoimage">LOGO</div>
			<div class="logout grid_5"><a href="index.php?loginprocess/loginout"><img src="<?php echo base_url()?>img/bt_logout.jpg"/></a></div>
		</div><!-- end logo-->
		
		<!--menupricipal-->
		<div class="menuprincipal grid_24">
			
		</div>
		<!-- end menupricipal-->
				
			<div class="descprincipal grid_22 ">
				description
			</div>
			
			<div class="grid_24 listcontent detail">
				<h1>Local Department  </h1>
				
				<div class="grid_24 top">
					
				</div>
			
					
			<div class="grid_24 detaillist datagrid">
				<table>
				
				<thead><tr><th>DepT name en</th><th>DepT Name fr</th><th>Description_en</th><th>Description_en</th><th>Order</th><th>OPTION</th></tr></thead>
				<tbody>
				<?php 
				$color=1;
				foreach ($listlocaldept as $lc){ 
				?>
				<form action="<?php echo base_url()?>admincms/acteditlocaldept" method="post">
				<input type="hidden" name="idlocaldepartment" value="<?php echo $lc["idlocaldepartment"]?>"/>
				<tr class="<?php if($color%2==0) echo "paire"; else echo "impaire";?>">
				<td><?php echo $lc["deptname_en"]?>	</td>
				<td><?php echo $lc["deptname_fr"]?></td>
				<td><input name="description_en" value="<?php echo $lc["description_en"]?>"/></td>
				<td><input name="descriptions_fr" value="<?php echo $lc["descriptions_fr"]?>"/></td>
				<td><input name="order" value="<?php echo $lc["order"]?>"/></td>
				<td>
											
						<input type="submit" name="Edit" value="Edit">
					
				</td></tr>
				</form>
							
				<?php
				 	$color++;
					}
				 ?>
				</tbody>
				</table>
				
				<br/>
				<H1>LISTE DE DEPARTMENTS</H1>
				<table>
				<thead><tr><th>DepT name en</th><th>DepT Name fr</th><th>OPTION</th></tr></thead>
				<tbody>
				<?php 
				$color=1;
				foreach ($listdeptnotselected as $lc){ 
				?>
				<tr class="<?php if($color%2==0) echo "paire"; else echo "impaire";?>">
				<td><?php echo $lc["deptname_en"]?>	</td>
				<td><?php echo $lc["deptname_fr"]?></td>
				<td>
					<form action="<?php echo base_url()?>admincms/actaddlocaldept" method="post">
					<input type="hidden" name="fk_depart_id" value="<?php echo $lc['iddepartment']?>"/>
					<input type="hidden" name="fk_local_id" value="<?php echo $idlocal;?>"/>
					<input type="submit" name="Edit" value="Add">
					</form>
</tr>
						
				<?php
				 	$color++;
					}
				 ?>
				</tbody>
			</table>		
				
				</div>
			
		</div>
	</div><!--end principal-->
</body>
</html>